package org.dromara.nursing.domain.vo;

import org.dromara.common.translation.annotation.Translation;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.nursing.domain.FoodService;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 饮食服务视图对象 ms_food_service
 *
 * @author Xue
 * @date 2025-04-09
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = FoodService.class)
public class FoodServiceVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 服务ID
     */
    @ExcelProperty(value = "服务ID")
    private Long serviceId;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private String foodUri;

    /**
     * 图片Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "foodUri")
    private String foodUriUrl;
    /**
     * 餐食名称
     */
    @ExcelProperty(value = "餐食名称")
    private String mealName;

    /**
     * 餐食类型
     */
    @ExcelProperty(value = "餐食类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_meat_type")
    private String mealType;

    /**
     * 用餐时间
     */
    @ExcelProperty(value = "用餐时间")
    private Date mealTime;

    /**
     * 老人姓名
     */
    @ExcelProperty(value = "老人姓名")
    private String elderName;

    /**
     * 食物清单
     */
    @ExcelProperty(value = "食物清单")
    private String foodItems;

    /**
     * 饮食要求
     */
    @ExcelProperty(value = "饮食要求")
    private String dietaryRequirements;

    /**
     * 过敏信息
     */
    @ExcelProperty(value = "过敏信息")
    private String allergies;

    /**
     * 进食状况
     */
    @ExcelProperty(value = "进食状况")
    private String eatingStatus;

    /**
     * 是否需要协助
     */
    @ExcelProperty(value = "是否需要协助", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_assistance_needed")
    private String assistanceNeeded;

    /**
     * 是否需要客房送餐
     */
    @ExcelProperty(value = "是否需要客房送餐", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_is_visiting_service")
    private String isVisitingService;

    /**
     * 房间号
     */
    @ExcelProperty(value = "房间号")
    private Long roomId;

    /**
     * 服务人员ID
     */
    @ExcelProperty(value = "服务人员ID")
    private Long staffId;

    /**
     * 服务人员姓名
     */
    @ExcelProperty(value = "服务人员姓名")
    private String staffName;

    /**
     * 服务费用
     */
    @ExcelProperty(value = "服务费用")
    private Long serviceFee;

    /**
     * 付款状态
     */
    @ExcelProperty(value = "付款状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "payment_status")
    private String paymentStatus;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remarks;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;


}
